﻿<Page x:Class="Resn.WhuPub.WPFClientUI.CreateCorporateBranchPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="CreateCorporateWindow" MinWidth="640" MinHeight="480"  Loaded="Page_Loaded">
        <Grid Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <TextBlock Text="新建分校" Style="{DynamicResource TextBlockStyle}" />

                <Grid Grid.Row="1">
                        <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="1" Grid.Row="1" Text="学校信息" Style="{StaticResource TextBlockStyle}"
                                   HorizontalAlignment="Left" />

                        <TextBlock Grid.Column="2" Grid.Row="2" HorizontalAlignment="Right" Text="名称"
                                   Style="{DynamicResource TextBlockStyle}" VerticalAlignment="Center" />
                        <TextBlock Grid.Column="3" Grid.Row="2" MinWidth="280" Name="CorporateNameTextBlock"
                                   Style="{DynamicResource TextBlockStyle}" />

                        <TextBlock Grid.Column="2" Grid.Row="3" HorizontalAlignment="Right" Text="层次"
                                   Style="{DynamicResource TextBlockStyle}" />
                        <TextBlock Grid.Column="3" Grid.Row="3" Name="CorporateLevelTextBlock"
                                   Style="{DynamicResource TextBlockStyle}" />

                        <TextBlock Grid.Column="1" Grid.Row="4" Text="校本部信息" Style="{StaticResource TextBlockStyle}"
                                   HorizontalAlignment="Center" Margin="12,6" />
                        <TextBlock Grid.Column="2" Grid.Row="5" HorizontalAlignment="Left" Name="textBlock1" Text="名称"
                                   VerticalAlignment="Top" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="2" Grid.Row="6" HorizontalAlignment="Right" Name="textBlock2" Text="省份"
                                   VerticalAlignment="Center" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="2" Grid.Row="7" HorizontalAlignment="Right" Name="textBlock3" Text="城市"
                                   VerticalAlignment="Center" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="2" Grid.Row="8" HorizontalAlignment="Right" Name="textBlock4" Text="地址"
                                   VerticalAlignment="Center" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="2" Grid.Row="9" HorizontalAlignment="Right" Name="textBlock5" Text="邮编"
                                   VerticalAlignment="Center" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="2" Grid.Row="10" HorizontalAlignment="Right" Name="textBlock6"
                                   Text="网址" VerticalAlignment="Center" Style="{StaticResource TextBlockStyle}" />
                        <TextBox Grid.Column="3" Grid.Row="5" Name="CorporateBranchNameTextBox" VerticalAlignment="Top"
                                 Style="{StaticResource TextBoxStyle}"
                                 Text="{Binding CorporateBranchName, UpdateSourceTrigger=PropertyChanged}" />
                        <ComboBox Grid.Column="3" Grid.Row="6" HorizontalAlignment="Stretch"
                                  Name="CorporateBranchProvinceComboBox" VerticalAlignment="Center"
                                  Style="{StaticResource ComboBoxStyle}"
                                  SelectedValue="{Binding CorporateBranchProvince, UpdateSourceTrigger=PropertyChanged}"
                                  SelectionChanged="CorporateBranchProvinceComboBox_SelectionChanged" />
                        <ComboBox Grid.Column="3" Grid.Row="7" HorizontalAlignment="Stretch"
                                  Name="CorporateBranchCityComboBox" VerticalAlignment="Center"
                                  Style="{StaticResource ComboBoxStyle}"
                                  SelectedValue="{Binding CorporateBranchCity, UpdateSourceTrigger=PropertyChanged}" />
                        <TextBox Grid.Column="3" Grid.Row="8" HorizontalAlignment="Stretch"
                                 Name="CorporateBranchAddressTextBox" VerticalAlignment="Center"
                                 Style="{StaticResource TextBoxStyle}" Text="{Binding CorporateBranchAddress}" />
                        <TextBox Grid.Column="3" Grid.Row="9" HorizontalAlignment="Stretch"
                                 Name="CorporateBranchPostcodeTextBox" VerticalAlignment="Center"
                                 Style="{StaticResource TextBoxStyle}" Text="{Binding CorporateBranchPostcode}" />
                        <TextBox Grid.Column="3" Grid.Row="10" HorizontalAlignment="Stretch"
                                 Name="CorporateBranchWebsiteTextBox" VerticalAlignment="Center"
                                 Style="{StaticResource TextBoxStyle}" Text="{Binding CorporateBranchWebsite}" />
                </Grid>
                <Grid Grid.Row="2">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Button Content="确定" Grid.Column="2" Name="AcceptButton"
                                Style="{DynamicResource ButtonStyle}"
                                Click="AcceptButton_Click" />
                        <Button Content="取消" Grid.Column="1" Name="CancelButton"
                                Style="{DynamicResource ButtonStyle}"
                                Click="CancelButton_Click" />

                </Grid>
        </Grid>
</Page>